<?php
/**
 * Created by PhpStorm.
 * User: Charles
 * Date: 2017/10/8
 * Time: 0:24
 */

namespace App\Models;

use EasyWeChat\Foundation\Application;

class EasyWechat
{
    private static $app = null;

    public static function getApp()
    {
        if (null === self::$app) {
            self::$app = new Application(self::getOptions());
        }
        return self::$app;
    }

    public static function getOptions()
    {
        return config('easywechat');
    }


}